<template>
    <div class="error-page" @click="reload && reload()">
        <div class="icon"></div>
        <p class="message">{{msg || '接口错误'}}</p>
        <p class="message">{{tapMsg}}</p>
    </div>
</template>

<script type="text/javascript">
    export default {
      props: {
        msg: {
          default: '接口错误',
          type: String
        },
        reload: {
          default: function () {
            location.reload()
          },
          type: Function
        },
        tapMsg: {
          default: '点击重试',
          type: String
        }
      }
    }
</script>